<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<? $DefURL=$arParams["COMPARE_URL"]?>
<? if(count($arResult)>0):?>


    
    
        
        <? foreach($arResult as $arElement):?>
        <? $DefURL=$DefURL."ID%5B%5D=".$arElement["ID"]."&";?>
        <div class="comp-item">
        <div class="item-comp-tmb"><img src="<?=SITE_TEMPLATE_PATH?>/images/items_spisok/img1_tmb.jpg" /></div>
        <div class="item-comp-hd"><a href="<?=$arElement["DETAIL_PAGE_URL"]?>" ><?=$arElement["NAME"]?></a> </div>
        <span id="<?=$arElement["ID"]?>" class="item-comp-close"></span>
        </div>
        
        <? endforeach?>
        
        <? $DefURL=$DefURL."&action=COMPARE&IBLOCK_ID=".$arResult["0"]["IBLOCK_ID"];?>
        <a class="btn_comp" href="<?=$DefURL?>"></a>

        
<?endif;?>